package com.hhss.qishi.mapper.system;

import com.hhss.qishi.entity.system.Menu;
import com.hhss.qishi.mapper.CapitalMapper;
import com.hhss.qishi.mapper.system.provider.MenuProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author :Administrator
 * @Description
 * @Date :2019-05-05 14:02.
 */
@Mapper
@Repository
public interface MenuMapper extends CapitalMapper<Menu> {

	@SelectProvider(type = MenuProvider.class, method = "getListSQL")
	List<Menu> getList(@Param("menu") Menu menu);

	@SelectProvider(type = MenuProvider.class, method = "getMenuTreeByPidSQL")
	List<Menu> getMenuTreeByPid(@Param("menu") Menu menu);
}
